<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div></div>
    <script>
        function getdate() {
            const div = document.querySelector("div");
            const date = new Date();
            div.innerHTML = `${date.getFullYear()}年${date.getMonth() + 1}月${date.getDate()}日 ${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`;
            setTimeout(getdate, 1000);
        }
        getdate();
    </script>
</body>

</html>